package priv.blackbibo.application.contants;

/**
 * Created by black on 2019-12-09.
 */
public enum  StatusEnum {
    //0,初始化,
    INIT(0),
    // 1,用户正在输入数据,
    INPUTTING(1),
    // 2，开始倒计时时,
    STARTING(2),
    // 3,正在倒计时,
    STARTED(3),
    // 4,结束倒计时，未通知用户，
    END_WAITING_NOTICE(4),
    // 5,已通知用户，
    NOTICED(5),
    // 6，倒计时已终止，等待用户开启
    END(6),
    ;
    public int status;

    StatusEnum(int status) {
        this.status = status;
    }
    public static StatusEnum get(int status){
        StatusEnum[] statusEnums = StatusEnum.values();
        for (StatusEnum statusEnum:statusEnums){
            if (status == statusEnum.status){
                return statusEnum;
            }
        }
        return null;
    }

}
